<div class="tabbable tabs-left">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tabTOM1" data-toggle="tab">Pregunta</a></li>
        <li><a href="#tabTOM2" data-toggle="tab">Validacion</a></li>
    </ul>
    <?php
    $attributes = array('class' => 'form-vertical','onsubmit' => 'fake_load();');
    echo form_open($url, $attributes);
    ?> 
    <div class="tab-content">
              <div class="tab-pane active" id="tabTOM1" >
                    <div class="control-group">
                        
                        <div class="pull-right">
                            <div class="btn-group">
                              <a class="btn btn-success add" onclick="addTH(this,2);"><i class="icon-plus"></i></a>
                              <a class="btn quit" onclick="quitTH(this,2);"><i class="icon-minus"></i></a>
                              <a class="btn other" onclick="addOtherTH(this,4);" title="Otro"><i class="icon-text-width"></i></a>
                        </div>
                            
                     
                   </div>
                        <Select id="secuencia" name="secuencia" class="inputs">
                            <?php for($i=$total + 1;$i>0;$i--) { ?>
                            <option value="<?php echo $i ;?>"><?php echo $i ;?></option>                            
                            <?php }?>
                        </Select>
                        <input name="txtEncabezado" required=""  title="Escribir descripcion" placeholder="Pregunta" <?php echo $edit; ?>class="control-label editables inputs">

                                    
                        <table id="tableTOM" class="table table-condensed">
                            <thead>
                               <tr class="alert-info">
                                 <th>F/C</th>   
                                 <th><input name="txtcab2" required=""  title="Llenar Campo." placeholder="Cabecera" class="control-label editables2 alert-info"></th>
                                 <th><input name="txtcab3"  required=""  title="Llenar Campo." placeholder="Cabecera" class="control-label editables2 alert-info"></th> 
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><input name="txtopc1" required=""  title="Llenar Campo." placeholder="Fila" class="control-label editables2"></td>
                                    <td><input type="checkbox" name="group1" disabled="" ></td>
                                    <td><input type="checkbox" name="group1" disabled="" ></td>
                                </tr>
                             </tbody>
                             </table>
                            <div class="pull-left">
                            <div class="btn-group">
                              <a class="btn btn-success addF" onclick="addTR(this,2);"><i class="icon-plus"></i></a>
                              <a class="btn quitF" onclick="quitTR(this,2);"><i class="icon-minus"></i></a>
                              <a  class="btn otherF" onclick="addOtherTR(this,2);" title="Otro"><i class="icon-text-width"></i></a>
                           </div>
                            
                     
                   </div>
                        
                    </div>
                </div>
            <div class="tab-pane" id="tabTOM2">        
               <label>Requerido</label><input type="checkbox" class="inputs" name="txtRequerido"/>  <br/>                     
               <label>Maximo Seleccionadas</label><br/><input type="number" class="inputs" name="txtselect" required=""  title="Llenar Campo." value="2"/> <br/>
               <input type="text" class="columnas" name="txtTotalCM" style="display:none;" value="3"/>
               <input type="text" class="filas" name="txtTotalFM" style="display:none;" value="1"/>
            </div>

    </div>

</div>
